{template header}

<style>
    .hp-visited a:visited{color: #444;}
    .input-append button{font-size:12px;}
</style>
<div style="clear:both">
    <h5>
        <span class="add-on"><i class="icon-calendar"></i> 添加管理员 </span>
        <span class="add-on">
            <code><a href="./?c=admin&a=adminlist">后台用户列表</a></code>
        </span>
    </h5>
</div>

<table class="table table-striped table-bordered table-hover"><tr><td>
<div style="clear:both;margin: 50px;">
    {if !empty($msg)}
    <div class="alert alert-warn">
        {$msg}
    </div>
    {/if}
    <form class="form-horizontal" method="post">
        <div class="control-group">
            <label class="control-label" for="hupu_uid">虎扑Uid<span style="color: red;">*</span></label>
            <div class="controls">
                <input name="hupu_uid" type="text" id="hupu_uid" placeholder="虎扑Uid" value="{$admin['hupu_uid']}"{if $admin['hupu_uid']} readonly="readonly"{/if}>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="hupu_username">虎扑用户名<span style="color: red;">*</span></label>
            <div class="controls">
                <input name="hupu_username" type="text" id="hupu_username" placeholder="虎扑用户名" value="{$admin['hupu_username']}">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="gid">权限分组</label>
            <div class="controls">
                <select name="gid" id="type">
                    <option value="" {if !$admin['gid']}selected="selected"{/if}>超级管理员</option>
                    <option value="1" {if $admin['gid'] == 1}selected="selected"{/if}>普通管理员</option>
                </select>
                <code>只有超级管理员有权限变更管理员信息</code>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="description">备注</label>
            <div class="controls">
                <input name="description" type="text" id="description" placeholder="备注" value="{$admin['description']}">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputStatus"></label>
            <div class="controls">
                <input name="submit" type="submit" id="inputSubmit" class="btn btn-primary" value="提交">&nbsp;&nbsp;
                <input name="reset" type="reset" id="inputreset" class="btn btn-inverse" value="重置">
            </div>
        </div>
    </form>
</div>
</td></tr></table>

{template footer}